package cn.dglydrpy.study.ssm.service.dto;

import java.io.Serializable;


/*
 * 用户登录和添加用户时利用Ajax和Json进行异步验证
 */

public class ResponseResult<T> implements Serializable {
	
	private static final long serialVersionUID = 4908472585769518235L;
	
	private Integer status;
	private String message;
	private T data;
	
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public T getData() {
		return data;
	}
	public void setData(T data) {
		this.data = data;
	}
	
	public ResponseResult(Integer status, String message, T data) {
		this.status = status;
		this.message = message;
		this.data = data;
	}
	public ResponseResult(Integer status, String message) {
		this.status = status;
		this.message = message;
	}
	public ResponseResult() {
		
	}
}
